<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>小册列表</title>
    <link crossorigin='anonymous' href="https://cdn.bootcss.com/twitter-bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
    <style>
        #container .no-margin-top{
            margin-top: 0;
        }
        .item{
            clear:both;
            height:auto;
            overflow: hidden;
            margin-bottom: 15px;
        }
    </style>
</head>
<body>
    <div class="container" id="container">
        <h2 class="page-header">小册列表</h2>
        <!-- 小册列表 -->
        <div class="row">
            <% for(let i=0;i<xiaoces.data.length;i++){ %>
            <div class="item">
                <div class="col-xs-2">
                    <img class="img-responsive" src="<%= xiaoces.data[i].base_info.cover_img %>" alt="">
                </div>
                <div class="col-xs-10">
                    <h4 class="no-margin-top"><a href="/book/<%= xiaoces.data[i].base_info.booklet_id %>"><%= xiaoces.data[i].base_info.title %></a></h4>
                    <p><%= xiaoces.data[i].base_info.summary %></p>
                    
                    <p class="price">￥<%= xiaoces.data[i].base_info.price / 100 %></p>
                </div>
            </div>
            <% } %>
        </div>

    </div>
    
</body>
</html>